﻿using System;
using System.Windows.Forms;
using GMusicBox.Core;

namespace GMusicBox
{
    public partial class frmLyrics : Form
    {
        internal frmLyrics(Lyric l)
        {
            InitializeComponent();

            textBox1.ContextMenu = contextMenu1;
            textBox1.Text = "";
            for (int i = 1; i < l.Texts.Count - 1; i++)
            {
                if (l.Texts[i] == null) continue;
                textBox1.Text += l.Texts[i].Trim() + "\r\n";
            }

            this.TopMost = Core.Setting.StandardSetting.TopMost;
        }

        private void menuItem2_Click(object sender, EventArgs e)
        {
            textBox1.Copy();
        }

        private void menuItem5_Click(object sender, EventArgs e)
        {
            textBox1.SelectAll();
        }

        private void menuItem4_Click(object sender, EventArgs e)
        {
            textBox1.SelectAll();
            textBox1.Copy();
        }
    }
}
